package com.coder.chen.indicator;

import com.coder.chen.indicator.view.TitlePageIndicator;
import com.coder.chen.indicator.view.TitlePageIndicator.IndicatorStyle;

import android.os.Bundle;
import android.support.v4.view.ViewPager;

public class MainActivity extends BaseActivity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.simple_titles);
		
		mAdapter = new TitleFragmentAdapter(getSupportFragmentManager());
		
		mPager = (ViewPager) findViewById(R.id.pager);
		mPager.setAdapter(mAdapter);
		
		TitlePageIndicator indicator = (TitlePageIndicator) findViewById(R.id.indicator);
		indicator.setViewPager(mPager);
		indicator.setFooterIndicatorStyle(IndicatorStyle.Underline);
	}


}
